package com.yh.correct.dao;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.LeavePersonnel;

/**
 * 
 * 外出请假表DAO接口
 * @author swj
 *
 */
public interface ILeavePersonnelMapper {

	/**
	 * 查询单个请假条信息
	 * 
	 */
	public  Map<String, Object> getLeavePersonnelById(LeavePersonnel leavepersonnel) throws Exception;
	/**
	 * 增加请假条信息
	 */
	public int addLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;

	/**
	 *删除请假条信息
	 */
	public int delLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;
	/**
	 * 修改请假条信息
	 */
	public int editLeavePersonnel(LeavePersonnel leavepersonnel) throws Exception;

	/**
	 * 模糊查询请假条信息
	 */
	public Integer getLikeLeavePersonnelCount(Map<String,Object> leavepersonnel) throws Exception;
	
	/**
	 * 模糊查询单个请假条信息列表
	 */
	public List<Object> getLikeLeavePersonnel(Map<String, Object> leavepersonnel) throws Exception;
}
